package com.primeton.wh.mcenter.impl.message.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.primeton.wh.mcenter.api.model.Application;

import java.util.Map;

public interface IApplicationService {

    /**
     * 应用APP查询（分页）
     * @author : YunTao.Li
     * @date : 2020/3/17 2020/3/17
     * @param condition :
     * @return : com.baomidou.mybatisplus.core.metadata.IPage<com.primeton.wh.mcenter.impl.message.entity.Message>
     */
    public IPage<Application> getApplicationList(Map<String, Object> condition) throws Throwable;

    /**
     * 新增应用APP记录(持久化方法)
     *
     * @param record :
     * @return : java.util.Map<java.lang.String,java.lang.String>
     * @author : YunTao.Li
     * @date : 2020/3/16 2020/3/16
     */
    public Map<String, String> addApplication(Application record) throws Throwable;

    /**
     * 修改应用APP记录(持久化方法)
     *
     * @param record :
     * @return : java.util.Map<java.lang.String,java.lang.String>
     * @author : YunTao.Li
     * @date : 2020/3/16 2020/3/16
     */
    public Map<String, String> editApplication(Application record) throws Throwable;
}
